package com.blgroup.oa.service.impl;

import com.blgroup.oa.service.GroupService;
import org.activiti.engine.IdentityService;
import org.activiti.engine.identity.Group;
import org.activiti.engine.identity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 用户组服务实现类
 *
 * @author yangenxiong
 */
@Service
public class GroupServiceImpl implements GroupService {

    @Autowired
    private IdentityService identityService;

    @Override
    public List<Group> list() {
        return identityService.createGroupQuery().list();
    }
}
